#ifndef RIDERREGISTER_H
#define RIDERREGISTER_H

#include "header.h"
#include "database.h"

class RiderRegisterWindow : public QDialog
{
    Q_OBJECT

public:
    explicit RiderRegisterWindow(database &db, int userId, int phoneId, QWidget *parent = nullptr);
    ~RiderRegisterWindow();

private slots:
    void onRegisterClicked();
    void onCancelClicked();

private:
    void setupUI();

    database &db;
    int userId;
    int phoneId;
    QString defaultPhone;

    // UI控件
    QLineEdit *riderNameEdit;
    QLineEdit *phoneEdit;
    
    QPushButton *registerButton;
    QPushButton *cancelButton;
};

#endif // RIDERREGISTER_H 